<?php
	include('../config.php');
	$id = $_POST['id'];
	$name=$_POST['name'];
	$original=$_POST['original'];
	$current=$_POST['current'];
	$description=$_POST['description'];
	mysql_query("UPDATE product SET pName='$name', pOriginalPrice='$original', pCurrentQuantity = '$current', pDescription='$description' WHERE pID='$id'") or die(mysql_error());
	header("location: products.php");
	exit();
?>